package cn.itsource.ymcc.service;

import cn.itsource.ymcc.domain.CourseCart;
import com.baomidou.mybatisplus.service.IService;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author whale
 * @since 2021-10-31
 */
public interface ICourseCartService extends IService<CourseCart> {

    void add(Long courseId);

    List<CourseCart> listForUser();

    BigDecimal calAmount(List<Long> courseIds);

    void remove(List<Long> courseIds);
}
